package com.jdls.tanhua.dubbo.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jdls.tanhua.dubbo.QuestionnaireApi;
import com.jdls.tanhua.dubbo.mapper.QuestionnaireMapper;
import com.jdls.tanhua.pojo.Questionnaire;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class QuestionnaireImpl implements QuestionnaireApi {

    @Autowired
    private QuestionnaireMapper questionnaireMapper;

    @Override
    public List<Questionnaire> find() {
        LambdaQueryWrapper<Questionnaire> queryWrapper= new LambdaQueryWrapper();
        List<Questionnaire> questionnaires = questionnaireMapper.selectList(queryWrapper);
        return questionnaires;
    }
}